<template>
  <div class="hello">
    <div class="container">
      <div class="topbar-nav">
        <router-link to="/"><a href="javascript:;">小米商城<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">MIUI<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">loT<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">云服务<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">天星数科<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">有品<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">小爱开发平台<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">企业团购<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">资质照片<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">协议规划<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">下载APP<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">智能生活<span>|</span></a></router-link>
        <router-link to="/"><a href="javascript:;">SelectLocation</a></router-link>
      </div>
      <div class="topbar-info">
        <router-link to="/login">登录</router-link>
        <span>|</span>
        <a href="javascript:;">注册</a>
        <span>|</span>
        <a href="javascript:;">信息通知</a>
        <span>|</span>
        <a href="javascript:;"><i class="iconfont icongouwucheman"></i>
        <router-link to="/PPingCart">购物车</router-link>
        </a>
      </div>
    </div>
  </div>
</template>

<script>
// import
export default {
  name: "HelloWorld",
  props: {
    msg: String,
  },
  methods: {
    handleClick() {
      alert("button click");
    },
  },
};
</script>
<style lang="less" scoped>
.hello {
  position: relative;
  z-index: 30;
  height: 40px;
  font-size: 12px;
  color: #b0b0b0;
  background: #333333;
  a {
    color: #b0b0b0;
    line-height: 40px;
    display: inline-block;
  }
  /* 导航右侧属性 */
  .container {
    width: 1220px;
    margin-right: auto;
    margin-left: auto;
    .topbar-nav {
      float: left;
      height: 40px;
      line-height: 40px;
    }
    .topbar-nav a:hover {
      color: white;
    }
    .topbar-nav a span {
      margin: 0 0.3em;
      color: #424242;
    }
  }
  .topbar-cart {
    position: relative;
    float: right;
    /* 购物车属性 */
    .el-button--primary {
      z-index: 32;
      display: block;
      border: 0;
      text-align: center;
      color: #b0b0b0;
      background: #424242;
      width: 120px;
      height: 40px;
      -webkit-transition: all 0.2s;
      transition: all 0.2s;
      font-size: 12px;
    }

    ul {
      display: none;
      position: absolute;
      width: 280px;
      left: -181px;
      min-height: 50px;
      padding: 0 10px;
      border-top: 0;
      border: 1px solid #e0e0e0;
      background-color: white;
      li {
        font-size: 16px;
        line-height: 50px;
      }
    }
    :hover {
      color: #ff6700;
      background: white;
    }
    :hover + ul {
      display: block;
    }
    .el-dropdown {
      position: absolute;
      vertical-align: top;
    }
    .el-dropdown + .el-dropdown {
      margin-left: 15px;
    }
    .el-icon-arrow-down {
      font-size: 12px;
    }
  }
  /* 登入注册购物车属性 */
  .topbar-info {
    position: relative;
    float: right;
    height: 40px;
    line-height: 40px;
    a {
      padding: 0 5px;
      text-align: center;
      i{
        vertical-align: -2px;
        padding-right: 5px;
      }
      &:last-child{
        // width: 80px;
        color: white;
        background-color: #ff6700;
      }
    }
    a:hover {
      color: white;
    }
    span {
      color: #424242;
    }
  }
}
</style>
